/*!
 * \file Mutex.cpp
 * \brief Mutex implementation.
 * \author Nus
 * \date 2008/03/13 01:50
 */

#include "Mutex.h"

// Default constructor.
Mutex::Mutex()
{
  mStatus = pthread_mutex_init(&mMutex, NULL);
}

// Default destructor.
Mutex::~Mutex()
{
  if(mStatus == 0)
    pthread_mutex_destroy(&mMutex);
}
